import { useWebConfigStore, useRefs } from "@/stores";
import { EmptyMap } from '@/utils/empty';
import {Amap} from './map/amap';
export const useMap = (callback?: Function) => {
    const WebConfigStore = useWebConfigStore();
    const { WEBCONFIG } = useRefs(WebConfigStore);
    switch (WEBCONFIG.value?.map_channels)
    {
        case 'amap':
            return new Amap(callback);
        default:
            return new EmptyMap(callback);
    }
}